package com.justech.eat.service.event;

import com.justech.eat.entity.Order;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @program: eat-service
 * @description: 报餐信息提交事件
 * @author: feifei.li
 * @create: 2020-06-04 18:19
 **/
@Getter
@Setter
public class OrderBookSubmitEvent extends ApplicationEvent {

    private Order order;

    public OrderBookSubmitEvent(Object source) {
        super(source);
    }

    public OrderBookSubmitEvent(Object source, Order order) {
        super(source);
        this.order = order;
    }
}
